<?php
class UserController extends ExtendedController
{
    public function index()
    {
        $data = NULL;
        if(isset($_POST['submit']))
        {            
            $this->loadModel('user');
            $data['message'] = $this->models['user']->handleUpdate();
        }
        $view =$this->loadView('index');
        $view->setBlockData($data);
        $view->setBlockData('Thông tin người dùng','page_title');
        $view->render();
    }
}